<div>
    <br>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">监控工作台 / 监控配置</li>
    </ol>
    <ul class="nav nav-tabs marT15">
      <li role="presentation" class="active"><a href="#/objManage" style="color: #555;">对象管理</a></li>
      <li role="presentation"><a href="#/childObjManage" style="color:#555;">子对象管理</a></li>
      <li role="presentation"><a href="#/attributeManage" style="color: #555;">属性管理</a></li>
      <li role="presentation"><a href="#/setupManage" style="color:#555;">监控设置管理</a></li>
      <li role="presentation"><a href="#/warnPersonManage" style="color: #555;">预警人管理</a></li>
      
   </ul> 
    <div class="form-inline">
        <div class="control-group row marB15" style="margin-left: 0px">
            <div class="marT15 left marR10" >
                <span class="search-name">对象查询</span>
                <input type="text" class="form-control1" 
                ng-model='searchData.objName'
                ng-keyup='search($event)'
                 placeholder="">
            </div>
         
            <a class=" btn btn-primary btn-sm left marT15" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>

        </div>
        </form>


      <div class="table-box">

        <table class="table table-bordered table-striped text-center bg-info">
            <thead >
            <tr class="info">
                <th class="text-center">对象ID</th>
                <th class="text-center">对象名称</th>
                <th class="text-center">对象类型</th>
                <th class="text-center">对象说明</th>
                <th class="text-center">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat='item in result'>
                <td class="w85">{{item.objId}}</td>
                <td class="w115">{{item.objName}}</td>
                <td class="w70">{{item.objType}}</td>
                <td class="w85">{{item.remark}}</td>
                <td class="w115">
                    <a class="marR10" data-toggle="modal" ng-click="edit('修改',item.objId)" data-target="#add1">修改</a>
                    <a data-toggle="modal" ng-click='delete(item.objId)'  data-target="#delete">删除</a>
                </td>

            </tr>
            <tr>
                <td><a class="glyphicon glyphicon-plus" data-toggle="modal" ng-click="edit('添加')" data-target="#add1"></a></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>

            </tbody>
        </table>
    </div>
         <page></page>
    </div>


<!--添加程序弹窗-->
<div class="modal fade" id="add1" tabindex="-1" role="dialog" aria-labelledby="add11">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="add11">{{popup}}对象</h4>
            </div>
            <div class="modal-body">
                <div class="row marB15">
                    <div class="col-xs-6">
                            <label class="search-name left">对象名称</label>
                            <input type="text" id="objName" ng-model='addData.objName' class="form-control line4 right">
                    </div>
                   <div class="col-xs-6">
                            <label class="search-name left">对象类型</label>
                            <select class="form-control line4 right" 
                            ng-model='addData.objType'
                            ng-options='item.DICID as item.DICVALUENAME for item in objType'
                            >
                            
                            </select>
                    </div>
                </div>
               
                <div class="marT15 clearfix row">
                    <div class="col-xs-12">
                        <label class="left"><span>对象说明 ：</span></label>
                        <textarea class="left form-control" ng-model='addData.remark' id="desc"></textarea>
                    </div>
                </div>
                <br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary btn-sm" ng-click='editSave()'>保存</button>
            </div>
        </div>
    </div>
</div>
<!-- 添加程序结束 -->

<div class="modal fade" id="delete">  
  <div class="modal-dialog">  
    <div class="modal-content message_align">  
      <div class="modal-header">  
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>  
        <h4 class="modal-title">提示信息</h4>  
      </div>  
      <div class="modal-body">  
        <p>此操作会连同对象下的主机接口访问信息、子项信息、属性信息、监控数据信息、监控预警信息、监控异常信息、监控趋势数据信息、预警接口人信息一并删除，您确认要删除吗？
</p>  
      </div>  
      <div class="modal-footer">  
         <input type="hidden" id="url"/>  
         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>  
         <a id="deleteSure" class="btn btn-primary" data-dismiss="modal" ng-click="deleteTr()">确定</a>  
      </div>  
    </div><!-- /.modal-content -->  
  </div><!-- /.modal-dialog -->  
</div><!-- /.modal -->  
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->
